package com.guiji.quartz.task;

import com.guiji.quartz.domain.Marketwatch;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * @program: cms-vue-plus
 * @description:
 * @author: wangxw
 * @date 2021/11/16 19:24
 */
@Component("marketwatchTask")
public class MarketwatchTask {

	private static final Logger log = LoggerFactory.getLogger(MarketwatchTask.class);

	public void marketwatchTask() throws Exception {
		Long startTime = System.currentTimeMillis();
		Marketwatch marketwatch = new Marketwatch();
		try {
			marketwatch.mainMethod();
		} catch (Exception e) {
		} finally {
			log.info("MarketwatchTask-end-:{}", System.currentTimeMillis() - startTime);
		}

	}
}

